package validacion;

public class ValidadorEquivaleA extends Validador<Integer> {
	
	Integer cant;
	
	public ValidadorEquivaleA(Integer cant) {
		this.cant = cant;
	}	
		
	@Override
	protected void validarConcreto(Integer cant) {
		if (this.cant != cant) throw new ValorInvalidoException();
	}

}
